function picFix(url){
    if(typeof url == 'string'){
        return url.replace('w.h','128.180');
    }
}

function dateFix(day){
    let date = new Date();
    let y = date.getFullYear();
    let m = date.getMonth() + 1;
    let d = date.getDate();
    let w = date.getDay();
    let today = y+'-'+m+'-'+d;
    
    let n1 = day.replace('2018-','');
    let n2 = n1.replace('2019-','');
    let m2 = n2.replace('-','月')+'日';

    if(today === day){
        return '今天' + m2;
    }else{
        return  m2;
    }                    
}


export default {
    picFix,
    dateFix,
}